public class Test {
    //素数判断
    public static void main(String[] args) {
        int n =9;
        int i = 2;
        for (;  i< n ;  i++) {
            if(n % i == 0){
                System.out.println("不是素数");
                break;
            }
            
        }
        if( i == n){
            System.out.println("是素数");
        }
    }
}
